package com.urbainski.componentes.utils
{
	import mx.formatters.DateFormatter;

	public class DateUtils
	{
		
		public static const DIA_MES_ANO : String = "DD/MM/YYYY";
		
		/**
		 * @author Cristian Elder Urbainski
		 * @since 03/01/2012
		 */
		
		public static function dateToString(date : Date) : String {
			var formatter : DateFormatter = new DateFormatter();
			formatter.formatString = DateUtils.DIA_MES_ANO;
			
			return formatter.format(date);	
		}
		
	}
}